package com.limf.demo.java5;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface RejectEmpty {
	/** hint title used in error message **/
	String value() default "";
}

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@interface AcceptInt {
	
	int min() default Integer.MIN_VALUE;
	int max() default Integer.MAX_VALUE;
	String hint() default "";
}
